<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
$id = $_GET['id'];
require 'conect.inc';
$comando = "SELECT t.`IMG`, t.`TIPO` FROM tb_img_usuario t where t.TB_USUARIOS_id='".$id."';";
$consulta = mysql_query($comando) or die("fudeu");
$campo = mysql_fetch_array($consulta);
$imagemPessoal = $campo[0];
header('Content-Length: '.strlen($campo[0]));
header("Content-type: {$campo[1]}");
echo $campo[0];

?>
